package blog.spring.web.entity;

public class Result {

	private long code;
	private String message;
	private Object data;

	public Result(long code, String message, Object data) {
		super();
		this.code = code;
		this.message = message;
		this.data = data;
	}

	public Result(long code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public Result(long code) {
		super();
		this.code = code;
	}

	public long getCode() {
		return code;
	}

	public void setCode(long code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public static Result SUCCESS(){
		return new Result(0, "SUCCESS", null);
	}
}
